import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'HomeMin',
    component: () => import('../views/HomeMin'),
  },
  {
    path: '/LoginMin',
    name: 'LoginMin',
    component: () => import('../views/LoginMin')
  },
  {
    path: '/ErrorMin',
    name: 'ErrorMin',
    component: () => import('../views/ErrorMin')
  },
  {
    path: '/cateMin',
    name: 'cateMin',
    component: () => import('@/components/caterouy/cateMin')
  }, {
    path: '/indexMin',
    name: 'indexMin',
    component: () => import('@/components/subcatory/indexMin')
  },
]

const router = new VueRouter({
  routes,
  scrollBehavior() {
    return { x: 0, y: 0 }
  }
})

export default router
